package com.jic.market.impl.rest.promotion.promotionInfoHandler;

import com.google.common.collect.ImmutableMap;

import java.util.Date;
import java.util.function.BiPredicate;

/**
 * description: BaseInfoHandlerTemplate
 * date: 2020/4/13 13:46
 * author: wangys
 * version: 1.0
 */
public abstract class BaseInfoHandlerTemplate  implements BaseInfoHandler{
    /**
     *  秒杀/满量 ----》通用活动
     */
    final static ImmutableMap<String, Integer> FRONT_PROM_TYPE_MAP = ImmutableMap.of("4000", 10);
    /**
     *  秒杀/满量 ----》通用活动
     */
    final static ImmutableMap<String, Integer> PROM_TYPE_MAP = ImmutableMap.of("4", 4);

    /**
     * 活动进行时校验
     */
    private BiPredicate<Integer, Date> ingPredicate = (status, endTime) -> {
        return false;
    };
}
